spl: nand: simple: replace readb() with chip specific read_buf()
authorVladimir Zapolskiy <[email protected]>
Fri, 17 Jul 2015 22:47:08 +0000 (01:47 +0300)
committerTom Rini <[email protected]>
Thu, 13 Aug 2015 00:47:33 +0000 (20:47 -0400)
commit8d1809a966996fdbcddb441c0ff8080d78a89c59
treecdf62b4038987648e80ad6622c7c6961550039ff
parent2dd46328fdc50284311908dfb1ca3d5ec1ddcb6e
spl: nand: simple: replace readb() with chip specific read_buf()

Some NAND controllers define custom functions to read data out,
respect this in order to correctly support bad block handling in
simple SPL NAND framework.

NAND controller specific read_buf() is used even to read 1 byte in
case of connected 8-bit NAND device, it turns out that read_byte()
may become outdated.

Signed-off-by: Vladimir Zapolskiy <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Tom Warren <[email protected]>
Acked-by: Scott Wood <[email protected]>
drivers/mtd/nand/nand_spl_simple.c